#!/bin/bash
#edited by Emma Ainsworth 6/15/2023 to check for both profiles
#edited by Zachary Butterfield Nov 4, 2026 to use Launch Arguments

found_profile1=$1
found_profile2=$2

if profiles -P | egrep -q $found_profile1; 
then
	echo "Found installed profile: $found_profile1"
	exit 0
elif profiles -P | egrep -q $found_profile2; 
then
	echo "Found installed profile: $found_profile2"
	exit 0
else
	echo "Profile $found_profile1 or $found_profile2 NOT FOUND"
	exit 1
fi
